﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="List.aspx.cs" Inherits="CRM.Web.VehicleManage.List" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <link href="<%= base.ResourcesPath + "Style/main.css" %>" rel="stylesheet" type="text/css" />
    <link href="<%= base.ResourcesPath + "Style/button.css" %>" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/jquery-1.6.2.min.js" ></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/My97DatePicker/WdatePicker.js"  defer="defer" ></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/MaskTextBox.js" ></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/button.js"></script>
</head>
<body>
    <form id="form1" runat="server" defaultbutton="btnSearch" >
<table border="0" cellpadding="0" cellspacing="0" id="tTitle">
    <tr>
	<td class="left">
	    <img src="<%= base.ResourcesPath %>Images/title_left.gif" alt="" />
	</td>
	<td class="middle">

    <div class="pagetitle">
        <div><asp:Label ID="lblTitle" runat="server" Text="车辆信息列表" ></asp:Label></div>
    </div>
	
	</td>
	<td class="right">
	    <img src="<%= base.ResourcesPath %>Images/title_right.gif" alt="" />
	</td>
    </tr>
</table>
    <div id="divMain" >
    <div style="width: 100%">
        <div class="listdiv">
            <table border="0" cellpadding="0" cellspacing="0" class="search" align="center">
                <tr>
                    <td class="title"><div  class="nowrap">
                        整机编号:</div>
                    </td>
                    <td class="content">
                        <asp:TextBox ID="txtVINCODE" runat="server" CssClass="txt" MaxLength="32" Rows="3"
                            TextMode="SingleLine"></asp:TextBox>
                    </td>
                    <td class="title"><div  class="nowrap">
                        发动机编号:</div>
                    </td>
                    <td class="content">
                        <asp:TextBox ID="txtENGINENUMBER" runat="server" CssClass="txt" MaxLength="32" Rows="3"
                            TextMode="SingleLine"></asp:TextBox>
                    </td>
                    <td class="title"><div  class="nowrap">
                        
                        </div>
                    </td>
                    <td class="content">
                    
                    </td>
                    <td class="title" style="width: auto;">
                        &nbsp;
                    </td>
                    <td class="content"><div style="width: 100px; " class="nowrap">
                        <asp:Button ID="btnSearch" runat="server" Text="查 询" CommandName="Search" CssClass="btn title_cx"
                            OnClick="btnSearch_Click" /></div>
                    </td>
                </tr>
            </table>
            <dp:WebGridView ID="gvList" runat="server" CssClass="gridview" AutoGenerateColumns="False" OnRowCreated="gvList_RowCreated" OnRowDataBound="gvList_RowDataBound" OnRowDeleting="gvList_RowDeleting" AllowPaging="true" 
                AllowSorting="true" PageSize="10"  SortExpressionValue="VEHICLEID"  SortDirectionValue="DESC" >
                <Columns>
			    <asp:BoundField DataField="VEHICLEID" HeaderText="车辆编号"  SortExpression="VEHICLEID"  Visible="false" />
			        <asp:TemplateField HeaderText="整机编号" SortExpression="VINCODE">
                        <ItemTemplate>
                            <asp:HyperLink id="hlModifyVINCODE" runat="server" NavigateUrl='<%# Eval("VEHICLEID", ModifyUrl) %>' Text='<%# Bind("VINCODE") %>'></asp:HyperLink>
                        </ItemTemplate>
                    </asp:TemplateField>
			    <asp:BoundField DataField="PRODUCTCODE" HeaderText="产品代码"  SortExpression="PRODUCTCODE"  />
			    <asp:BoundField DataField="BRANDCODE" HeaderText="品牌代码"  SortExpression="BRANDCODE"  Visible="false" />
			    <asp:BoundField DataField="VEHICLETYPECODE" HeaderText="类型代码"  SortExpression="VEHICLETYPECODE" Visible="false"  />
			    <asp:BoundField DataField="SERIESCODE" HeaderText="系列代码"  SortExpression="SERIESCODE"  Visible="false" />
			    <asp:BoundField DataField="MODELSCODE" HeaderText="机型代码"  SortExpression="MODELSCODE"  Visible="false" />
			    <asp:BoundField DataField="ENGINEMODELCODE" HeaderText="发动机型号代码"  SortExpression="ENGINEMODELCODE" Visible="false"  />
			    <asp:BoundField DataField="ENGINEMANUFACTURERSCODE" HeaderText="发动机厂家代码"  SortExpression="ENGINEMANUFACTURERSCODE" Visible="false"  />
			    <asp:BoundField DataField="BRAND" HeaderText="品牌"  SortExpression="BRAND" />
			    <asp:BoundField DataField="VEHICLETYPE" HeaderText="类型"  SortExpression="VEHICLETYPE" />
			    <asp:BoundField DataField="SERIES" HeaderText="系列"  SortExpression="SERIES" />
			    <asp:BoundField DataField="MODELS" HeaderText="机型"  SortExpression="MODELS" />
			    <asp:BoundField DataField="ENGINEMODEL" HeaderText="发动机型号"  SortExpression="ENGINEMODEL" />
			    <asp:BoundField DataField="ENGINEMANUFACTURERS" HeaderText="发动机厂家"  SortExpression="ENGINEMANUFACTURERS" />
			    <asp:BoundField DataField="ENGINENUMBER" HeaderText="发动机编号"  SortExpression="ENGINENUMBER" />
			    <asp:BoundField DataField="FRAMENUMBER" HeaderText="车架号"  SortExpression="FRAMENUMBER"  Visible="false"/>
			    <asp:BoundField DataField="DRIVECHECKER" HeaderText="试车人"  SortExpression="DRIVECHECKER"  Visible="false" />
			    <asp:BoundField DataField="VEHICLESTATUS" HeaderText="车辆状态"  SortExpression="VEHICLESTATUS" />
			    <asp:BoundField DataField="INNEROFFLINEDATE" HeaderText="内部下线日期"  SortExpression="INNEROFFLINEDATE" DataFormatString="{0:yyyy-MM-dd}"  Visible="false" />
			    <asp:BoundField DataField="OFFLINEDATE" HeaderText="下线日期"  SortExpression="OFFLINEDATE"  DataFormatString="{0:yyyy-MM-dd}"  Visible="false" />
			    <asp:BoundField DataField="SERIALMENO" HeaderText="总成系列号格式定义"  SortExpression="SERIALMENO"  Visible="false" />
			    <asp:BoundField DataField="SON" HeaderText="订单跟踪号"  SortExpression="SON"  Visible="false" />
			    <asp:BoundField DataField="MANUFACTUREDATE" HeaderText="出厂日期"  SortExpression="MANUFACTUREDATE"  DataFormatString="{0:yyyy-MM-dd}" />
			    <asp:BoundField DataField="SOURCESYS" HeaderText="信息来源"  SortExpression="SOURCESYS"  Visible="false" />
			    <asp:BoundField DataField="STOCKDATE" HeaderText="入库日期"  SortExpression="STOCKDATE"  DataFormatString="{0:yyyy-MM-dd}"  Visible="false" />
			    <asp:BoundField DataField="SUPPLYCODE" HeaderText="供应商编号"  SortExpression="SUPPLYCODE"  Visible="false" />
			    <asp:BoundField DataField="SUPPLYNAME" HeaderText="供应商名称"  SortExpression="SUPPLYNAME"  Visible="false" />
			    <asp:BoundField DataField="VERIFIERNAME" HeaderText="检验人名称"  SortExpression="VERIFIERNAME"  Visible="false" />
			    <asp:BoundField DataField="VERIFIERDATE" HeaderText="入库检验时间"  SortExpression="VERIFIERDATE"  DataFormatString="{0:yyyy-MM-dd}"  Visible="false" />
			    <asp:BoundField DataField="FIRSTSALEDATE" HeaderText="一次销售时间"  SortExpression="FIRSTSALEDATE"  DataFormatString="{0:yyyy-MM-dd}"  Visible="false" />
			    <asp:BoundField DataField="BULLETINCODE" HeaderText="公告号"  SortExpression="BULLETINCODE"  Visible="false" />
			    <asp:BoundField DataField="GEARTYPE" HeaderText="变速箱型号"  SortExpression="GEARTYPE" />
			    <asp:BoundField DataField="GEARCODE" HeaderText="变速箱号"  SortExpression="GEARCODE" />
			    <asp:BoundField DataField="REMARK" HeaderText="备注"  SortExpression="REMARK"  Visible="false" />
			    <asp:BoundField DataField="TUTURNID" HeaderText="转涂ID"  SortExpression="TUTURNID"  Visible="false" />
			    <asp:BoundField DataField="TUTURNNAME" HeaderText="转涂修改人"  SortExpression="TUTURNNAME"  Visible="false" />
			    <asp:BoundField DataField="TUTURNTIME" HeaderText="转涂时间"  SortExpression="TUTURNTIME"  DataFormatString="{0:yyyy-MM-dd}"  Visible="false" />
			    <asp:BoundField DataField="CERTIFICATION" HeaderText="合格证编号"  SortExpression="CERTIFICATION"  Visible="false" />
			    <asp:BoundField DataField="EXPORTDATE" HeaderText="销售日期"  SortExpression="EXPORTDATE"  DataFormatString="{0:yyyy-MM-dd}"  Visible="false" />
			    <asp:BoundField DataField="ONLINEDATE" HeaderText="上线时间"  SortExpression="ONLINEDATE"  DataFormatString="{0:yyyy-MM-dd}"  Visible="false" />
			    <asp:BoundField DataField="ONLINENAME" HeaderText="上线录入人"  SortExpression="ONLINENAME"  Visible="false" />
			    <asp:BoundField DataField="SHAPEPARAMETERS" HeaderText="外型参数"  SortExpression="SHAPEPARAMETERS"  Visible="false" />
			    <asp:BoundField DataField="PREPAREDNESSQUALITY" HeaderText="整备质量"  SortExpression="PREPAREDNESSQUALITY"  Visible="false" />
			    <asp:BoundField DataField="STOPWATCHDATE" HeaderText="计时器运行时间"  SortExpression="STOPWATCHDATE"  Visible="false" />
			    <asp:BoundField DataField="SPECIALNOTES" HeaderText="特殊记事"  SortExpression="SPECIALNOTES"  Visible="false" />
			    <asp:BoundField DataField="MAJORCHANGERECORD" HeaderText="重大问题变更记录"  SortExpression="MAJORCHANGERECORD"  Visible="false" />
			    <asp:BoundField DataField="TUBACKID" HeaderText="涂回人ID"  SortExpression="TUBACKID"  Visible="false" />
			    <asp:BoundField DataField="TUBACKNAME" HeaderText="涂回人"  SortExpression="TUBACKNAME"  Visible="false" />
			    <asp:BoundField DataField="TUBACKTIME" HeaderText="涂回时间"  SortExpression="TUBACKTIME" DataFormatString="{0:yyyy-MM-dd}"   Visible="false" />
			    <asp:BoundField DataField="CREATETIME" HeaderText="创建时间"  SortExpression="CREATETIME"  DataFormatString="{0:yyyy-MM-dd}"  Visible="false" />
			    <asp:BoundField DataField="CREATEPEOPLEID" HeaderText="创建人编号"  SortExpression="CREATEPEOPLEID"  Visible="false" />
			    <asp:BoundField DataField="CREATEPEOPLE" HeaderText="创建人"  SortExpression="CREATEPEOPLE" Visible="false"  />
			    <asp:BoundField DataField="LASTMODIFYPEOPLEID" HeaderText="最后修改人编号"  SortExpression="LASTMODIFYPEOPLEID"  Visible="false" />
			    <asp:BoundField DataField="LASTMODIFYPEOPLE" HeaderText="最后修改人"  SortExpression="LASTMODIFYPEOPLE" Visible="false"  />
			    <asp:BoundField DataField="LASTMODIFYTIME" HeaderText="最后修改时间"  SortExpression="LASTMODIFYTIME"  DataFormatString="{0:yyyy-MM-dd}"  Visible="false" />
			    <asp:BoundField DataField="BUSINESSDIVISIONID" HeaderText="事业部编号"  SortExpression="BUSINESSDIVISIONID"  Visible="false" />
			    <asp:BoundField DataField="BUSINESSDIVISIONNAME" HeaderText="事业部名称"  SortExpression="BUSINESSDIVISIONNAME"  Visible="false" />
			    <asp:BoundField DataField="BUSINESSDIVISIONCODE" HeaderText="事业部代码"  SortExpression="BUSINESSDIVISIONCODE"  Visible="false" />
			    <asp:BoundField DataField="MARKETDEPARTMENTID" HeaderText="市场部编号"  SortExpression="MARKETDEPARTMENTID"  Visible="false" />
			    <asp:BoundField DataField="MARKETDEPARTMENTCODE" HeaderText="市场部代码"  SortExpression="MARKETDEPARTMENTCODE"  Visible="false" />
			    <asp:BoundField DataField="MARKETDEPARTMENTNAME" HeaderText="市场部名称"  SortExpression="MARKETDEPARTMENTNAME" />
			    <asp:BoundField DataField="DEALERCODE" HeaderText="经销商代码"  SortExpression="DEALERCODE"  Visible="false" />
			    <asp:BoundField DataField="DEALERNAME" HeaderText="经销商名称"  SortExpression="DEALERNAME" />
			    <asp:BoundField DataField="VEHICLEUSE" HeaderText="车辆用途"  SortExpression="VEHICLEUSE"  Visible="false" />
			    <asp:BoundField DataField="MILEAGE" HeaderText="里程"  SortExpression="MILEAGE"  Visible="false" />
			    <asp:BoundField DataField="COLOR" HeaderText="车身颜色"  SortExpression="COLOR" Visible="false"  />
			    <asp:BoundField DataField="CARNUMBER" HeaderText="上车编号"  SortExpression="CARNUMBER"  Visible="false" />
			    <asp:BoundField DataField="CHASSISNO" HeaderText="底盘编号"  SortExpression="CHASSISNO"  Visible="false" />
			    <asp:BoundField DataField="CHANGEDATE" HeaderText="变更时间"  SortExpression="CHANGEDATE"  DataFormatString="{0:yyyy-MM-dd}"  Visible="false" />
			    <asp:BoundField DataField="CHANGENAME" HeaderText="变更人"  SortExpression="CHANGENAME"  Visible="false" />
			    <asp:BoundField DataField="CORPCODE" HeaderText="企业代码"  SortExpression="CORPCODE" Visible="false"  />
			    <asp:BoundField DataField="CFGPRODUCTCODE" HeaderText="配置编号"  SortExpression="CFGPRODUCTCODE"  Visible="false" />
			    <asp:BoundField DataField="STATIONCODE" HeaderText="服务商"  SortExpression="STATIONCODE"  Visible="false" />
			    <asp:BoundField DataField="EMISSIONS" HeaderText="排量"  SortExpression="EMISSIONS"  Visible="false" />
			    <asp:TemplateField HeaderText="操作" ShowHeader="False">
                    <itemtemplate>
                    <div style="white-space: nowrap;"><asp:HyperLink id="hlModify" runat="server" NavigateUrl='<%# Eval("VEHICLEID", ModifyUrl) %>'>详细</asp:HyperLink>
                    <asp:LinkButton id="lbtnDelete" runat="server" Text="删除" CommandName="Delete" CausesValidation="False" OnClientClick="return confirm('您确认要删除此条记录吗？');"></asp:LinkButton>            
                    </div>
				    </itemtemplate>
                </asp:TemplateField>
                </Columns>	
                <RowStyle CssClass="row" />
                <AlternatingRowStyle CssClass="row2" />
                <HeaderStyle CssClass="header" />	
                <PagerStyle CssClass="pager" />	
            </dp:WebGridView>
        </div>
    </div>
</div>
    </form>
</body>
</html>
